#ifndef _C_GL_INPUT_LAYOT_H_
#define _C_GL_INPUT_LAYOT_H_

#include "../interface/I_api_InputLayout.h"

#include "../interface/S_gl_Struct.h"

class C_gl_InputLayout : public I_api_InputLayout
{
	S_gl_Input_Element_Desc * m_pDesc;
public:
	C_gl_InputLayout(S_gl_Input_Element_Desc * pDesc, int nCount)
	{
		m_pDesc = new S_gl_Input_Element_Desc[nCount];
		for (int i = 0; i < nCount; i++)
		{
			m_pDesc[i] = pDesc[i];
		}
	}
	~C_gl_InputLayout()
	{
		delete [] m_pDesc;
	}
};
#endif